//
//  HJPopverViewController.swift
//  sinaWeibo
//
//  Created by hjun on 16/3/25.
//  Copyright © 2016年 hjun. All rights reserved.
//

import UIKit

class HJPopverViewController: UITableViewController {

    private let  CellReuseIdentifier = "CellReuseIdentifier"
    let titles = ["首页","朋友圈","群微博","新浪微博","我的微博"]
    
    override func viewDidLoad() {
        super.viewDidLoad()
    
        ///注册cell
        
        tableView.registerClass(UITableViewCell
            .self, forCellReuseIdentifier: CellReuseIdentifier)
        
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return titles.count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        
        
      let cell = tableView.dequeueReusableCellWithIdentifier(CellReuseIdentifier, forIndexPath: indexPath)
        
        cell.textLabel?.text = titles[indexPath.row]
        
        return cell
    
    }

}
